//
//  HJFMDBDataSoure.h
//  project
//
//  Created by jc on 2019/4/24.
//  Copyright © 2019 健健. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDatabase.h"

NS_ASSUME_NONNULL_BEGIN

@interface HJFMDBDataSoure : NSObject
@property (nonatomic, strong) FMDatabase *db;
@property(nonatomic,strong) NSData * data;
+(instancetype)instance;

/**
 创建数据表单 fmdb
 */
-(void)configFMDB;

/**
 查询数据库
 @param data 数据源Block数组
 */
-(void)findFMDBWithData:(void(^)(NSMutableArray *dataArray))data;

/**
 插入数据

 @param jsonStr 行程数据
 */
-(void)insertFMDBWithlist:(NSString *)jsonStr;
@end

NS_ASSUME_NONNULL_END
